<?php

$connection = mysql_connect("servername","username","password");

if(!$connection)
      die('Could not connect:'.mysql_error());

mysql_select_db("databasename",$connection);




             execQuery( $query )
	      {
		$result = mysql_query( $query);
		
		if( !$result )
		{
			return false;
		}
		else
			return true;	

                }


mysql_close($connection);

?>